<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="../assets/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Custom Font Icons CSS-->
    <link rel="stylesheet" href="../assets/css/font.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="../assets/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="../assets/css/custom.css">
    <title>我的用户列表</title>

</head>
<body>
<%@ include file="publicjsp/head.jsp" %>

<div class="d-flex align-items-stretch">
    <!-- Sidebar Navigation-->
    <nav id="sidebar">
        <!-- Sidebar Header-->
        <%@ include file="publicjsp/sideHeader.jsp" %>
        <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
        <ul class="list-unstyled">
            <li><a href="${pageContext.request.contextPath}/view/gohome"> <i class="icon-home"></i>主页 </a></li>
            <li><a href="#userDropdown" data-toggle="collapse" aria-expanded="true"> <i
                    class="icon-windows"></i>用户列表</a>
                <ul id="userDropdown" class="collapse show">
                    <li><a href="${pageContext.request.contextPath}/user/lookUser">查看用户</a></li>
                    <li class="active"><a href="${pageContext.request.contextPath}/user/myFocus">我关注的用户</a></li>
                    <li><a href="${pageContext.request.contextPath}/article/articleList">发布文章</a></li>
                    <li><a href="${pageContext.request.contextPath}/article/myArticleList">我的收藏</a></li>
                </ul>
            </li>
            <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

            <li><a href="#depDropdown" data-toggle="collapse"> <i class="icon-windows2"></i>部门列表</a>
                <ul id="depDropdown" class="collapse list-unstyled ">
                    <li><a href="${pageContext.request.contextPath}/dept/departmentList">全部部门</a></li>
                    <li><a href="${pageContext.request.contextPath}/meet/meeting">会议系统</a></li>
                </ul>
            </li>

        </ul>

    </nav>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">我的关注列表</h2>
            </div>
        </div>
        <section class="no-padding-bottom">

            <div class="list-group myList">
                <ul>
                    <c:if test="${requestScope.focusList != null && requestScope.focusList.size() != 0}">
                        <c:forEach var="user" items="${requestScope.focusList}">
                            <li class="list-group-item">
                                <a href="${pageContext.request.contextPath}/view/userDetail?uId=${user.ufId}">${user.realName}</a>
                                <div style="float: right" class="text-right">
                                    <input data-id="${user.ufId}" type="submit" class="btn btn-danger" value="取消关注">
                                </div>
                            </li>
                        </c:forEach>
                    </c:if>


                    <%--<li class="list-group-item">--%>
                    <%--<a href="user_detail.jsp">小标</a>--%>
                    <%--<div style="float: right" class="text-right">--%>
                    <%--<input type="submit" class="btn btn-danger" value="取消关注">--%>
                    <%--</div>--%>
                    <%--</li>--%>
                    <%--<li class="list-group-item">--%>
                    <%--<a href="user_detail.jsp">小艾</a>--%>
                    <%--<div style="float: right" class="text-right">--%>
                    <%--<input type="submit" class="btn btn-danger" value="取消关注">--%>
                    <%--</div>--%>
                    <%--</li>--%>
                    <%--<li class="list-group-item">--%>
                    <%--<a href="user_detail.jsp">小赵</a>--%>
                    <%--<div style="float: right" class="text-right">--%>
                    <%--<input type="submit" class="btn btn-danger" value="取消关注">--%>
                    <%--</div>--%>
                    <%--</li>--%>
                    <%--<li class="list-group-item">--%>
                    <%--<a href="user_detail.jsp">小王</a>--%>
                    <%--<div style="float: right" class="text-right">--%>
                    <%--<input type="submit" class="btn btn-danger" value="取消关注">--%>
                    <%--</div>--%>
                    <%--</li>--%>
                </ul>
                <nav class="text-center" aria-label="Page navigation">
                    <ul class="pagination">
                        <c:if test="${requestScope.focusList != null && requestScope.focusList.size() != 0}">
                            <li>
                                <c:if test="${requestScope.startPage == 1}">
                                    <a href="#" aria-label="Previous" id="firstPage">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                </c:if>
                                <c:if test="${requestScope.startPage > 1}">
                                    <a href="${pageContext.request.contextPath}/view/myFocusList?page=${requestScope.startPage-1}"
                                       aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                </c:if>
                            </li>
                            <c:forEach var="index" varStatus="page" begin="${requestScope.startPage}"
                                       end="${requestScope.endPage}" step="1">
                                <c:if test="${page.count + (requestScope.startPage - 1)==requestScope.currentPage}">
                                    <li data-page="${index}"><a class="active"
                                                                href="${pageContext.request.contextPath}/view/myFocusList?page=${index}">${index}</a>
                                    </li>
                                </c:if>
                                <c:if test="${page.count+(requestScope.startPage-1)!=requestScope.currentPage}">
                                    <li data-page="${index}"><a
                                            href="${pageContext.request.contextPath}/view/myFocusList?page=${index}">${index}</a>
                                    </li>
                                </c:if>
                            </c:forEach>
                            <%--<li><a href="#">1</a></li>--%>
                            <%--<li><a href="#">2</a></li>--%>
                            <%--<li><a href="#">3</a></li>--%>
                            <%--<li><a href="#">4</a></li>--%>
                            <%--<li><a href="#">5</a></li>--%>
                            <li>
                                <c:if test="${requestScope.totalPage == requestScope.endPage}">
                                    <a href="#" aria-label="Next" id="lastPage">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                </c:if>
                                <c:if test="${requestScope.totalPage != requestScope.endPage}">
                                    <a href="${pageContext.request.contextPath}/view/myFocusList?page=${requestScope.endPage+1}"
                                       aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                </c:if>
                            </li>
                        </c:if>

                    </ul>
                </nav>
            </div>
        </section>

        <%@ include file="publicjsp/footer.jsp" %>
    </div>
</div>

<!-- JavaScript files-->
<script src="../assets/vendor/jquery/jquery.min.js"></script>
<script src="../assets/vendor/popper.js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="../assets/vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="../assets/vendor/chart.js/Chart.min.js"></script>
<script src="../assets/vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="../assets/js/charts-home.js"></script>
<script src="../assets/js/front.js"></script>
<script src="../assets/js/custom.js"></script>
</body>
</html>